# -*- coding: utf-8 -*-
"""
Created on 2021/10/19 17:46
---------
@summary:
---------
@author: WangPan
"""
import multiprocessing
import os

os.mkdir('logs') if not os.path.exists('logs') else None  # logs不存在就创建
bind = '0.0.0.0:8901'  # 绑定ip和端口号
backlog = 2048  # 监听队列
timeout = 30  # 超时
worker_class = 'gevent'  # 工作模式
workers = multiprocessing.cpu_count() * 2  # 进程数
threads = 3  # 指定每个进程开启的线程数
loglevel = 'info'  # 日志级别
accesslog = "logs/gunicorn_access.log"  # 访问日志文件
errorlog = "logs/gunicorn_error.log"  # 错误日志文件
